<?php

/**
 * 推荐位管理验证器
 * @author  xiaobai
 * @date    2018-01-28
 */

namespace app\common\validate;

use think\Validate;

class Position extends Validate
{
    
    protected $rule = [
        'name'   => 'require|unique:position',
        'status' => 'require',
    ];

    protected $message = [
        'name'            => '推荐位名称不能为空',
        'name.unique'     => '推荐位名称已存在',
        'status.require'  => '推荐位状态必选',
    ];

}
